﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ForumPage.aspx.cs" Inherits="WebForum.ForumPages.ForumPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <br />
    </p>
        <h1><strong style="font-weight: 700; color: #333333">Forum: <% =this.details[0]%></strong></h1>
        <h3>&nbsp;Admin: <% =this.details[1]%></h3>
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" 
            CellPadding="3" DataSourceID="ObjectDataSource1" GridLines="Vertical" 
            Width="350px" Height="160px" 
            onselectedindexchanged="GridView1_SelectedIndexChanged">
            <AlternatingRowStyle BackColor="#DCDCDC" />
            <Columns>
                <asp:HyperLinkField DataNavigateUrlFields="ForumID, ID" 
                    DataNavigateUrlFormatString="~/ForumPages/SubForumPage.aspx/?ForumID={0}&SubForumID={1}" 
                    Text="Enter" ItemStyle-Width="20%">
<ItemStyle Width="20%"></ItemStyle>
                </asp:HyperLinkField>
                <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
            </Columns>
            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
            <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
            <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#0000A9" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#000065" />
        </asp:GridView>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            SelectMethod="GetForumData" TypeName="DataAccessLayer.ForumDataLayer" 
            onselecting="ObjectDataSource1_Selecting">
            <SelectParameters>
                <asp:Parameter DefaultValue="0" Name="forumID" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
    </p>
    <p>
    </p>
</asp:Content>
